<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>013-onload和DOMContentLoaded区别</title>
	<script>
		console.log('in...');
		window.onload = function(){
			console.log('onload...');
		}
		document.addEventListener('DOMContentLoaded',function(){
			console.log('DOMContententloaded...');
		})
	</script>
</head>
<body>
	<div></div>
	<img src="images/Q1.jpeg" alt="">
</body>
</html>